/*
 * @Author: szx
 * @Date: 2021-10-23 14:50:47
 * @LastEditTime: 2021-10-23 14:56:35
 * @Description:
 * @FilePath: \leetcode\492\492.go
 */
package main

import "math"

func constructRectangle(area int) []int {
	var i int = int(math.Sqrt(float64(area)))
	for area%i > 0 {
		i--
	}
	return []int{area / i, i}
}

func main() {

}
